#ifndef READER_H
#define READER_H

//#include "hal.h"

#define BADGE_ID 4

#define SIO_BAUD 115200

#include "hal.h"

void T3_IRQ(void) __interrupt(T3_VECTOR);
void powermodes_ST_IRQ(void) __interrupt (ST_VECTOR);

typedef struct {
 UINT8 cc_len;
 UINT32 zadr;
 UINT32 qadr;
 UINT8 typ;
 UINT8 sim_len;
 UINT8 lfd;
 UINT8 rw_oder_was;
 UINT8 magic;
 UINT8* sim_pl;
} sim_frame  ;

// #include "hal.h"

/*
Inhalt:

Interruptroutine zum SFD merken und SFD Flag setzen
Initialisierungsroutine
prepareReceive Routine
Daten Einleseroutine


*/
/*
// SDCC möchte forward deklaration
#ifdef __SDCC__
void spp_rf_IRQ(void)  __interrupt (RF_VECTOR);
void rf_error_IRQ(void) __interrupt (RFERR_VECTOR);
//#else
//__interrupt void spp_rf_IRQ (void);
//__interrupt void rf_error_IRQ(void);
#endif

UINT8 myRadioGetRXData(UINT8* rx_ptr);
void myRadioInit(UINT8 chan);
void myRadioReceive(void);
void myRadioSetRxCallBackFunction(UINT8 (*callBackFunction)(void));
void myRadioOff(void);
*/
#endif

